package cn.jkgly.test.Controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class JspController {

    @RequestMapping("/jsp")
    public String test01(Model model) {
        model.addAttribute("name", "胖先森");
        return "/index";
    }

    @RequestMapping("/jsp2")
    public String test02(Model model) {
        model.addAttribute("name", "胖先森");
        return "/index2";
    }


}

